#pragma once

#include <string>

class CBasicFunctions
{
public:
	CBasicFunctions(void);
	~CBasicFunctions(void);
public:

	static std::string Base64Encode(const unsigned char* Data,int DataByte);
	static std::string Base64Decode(const char* Data,int DataByte,int& OutByte);
	static std::string GenerateRID(unsigned long long time, unsigned short ms, unsigned long long number);
	static std::string GenerateRID( std::string rid );
	static std::string GenerateMD5(const std::string &fileName);
public:
	static void WriteDebugMessage(char *fmt, ...);
	static void WriteDebugMessageImpl(char *fmt);
	static char m_sprint_buf[1024];
};

